﻿@{
    Layout = "~/Views/Shared/LZZC_Layout.cshtml";
    string docClsCd = ViewData["docClsCd"] == null ? "" : ViewData["docClsCd"].ToString();
}
@using ElingOA6_DSJCJ.Models;
@using ElingOA6_DSJCJ.Common;
@using ElingOA6_DSJCJ.Model;
@using System.Data;
@model  Dictionary<string, List<DocumentGridModel>>
@{ 
    List<DocumentGridModel> documentList = new List<DocumentGridModel>();
    List<DocCls> subDocClsList = ViewData["subDocClsList"] == null ? new List<DocCls>() : ViewData["subDocClsList"] as List<DocCls>;
    List<SysPhrase> sysPhraseList = ViewData["sysPhraseList"] == null ? new List<SysPhrase>() : ViewData["sysPhraseList"] as List<SysPhrase>;
}
@helper  GetShowText(string keyDocCd, List<DocCls> subDocClsList)
    {
        List<ElingOA6_DSJCJ.Model.DocCls> tmpList = subDocClsList.Where(s => s.FDocClsCd == keyDocCd).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FDocClsName
        }

}
@helper  GetShowQFJYText(string keyDocCd, List<DocCls> subDocClsList)
    {
        List<ElingOA6_DSJCJ.Model.DocCls> tmpList = subDocClsList.Where(s => s.FDocClsCd == keyDocCd).ToList();
        if (tmpList.Count > 0)
        {
    @:@tmpList[0].FDocClsName
        }

}
<div class="wapper">
	<div class="container">
   
    <div class="content">
    	<div class="hdly">
            @{
                documentList = new List<DocumentGridModel>();
                int i = 1;
                string key = "800606";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title3"><span class="left f16 f-b pl_15 pt_5 red">@GetShowText(key, subDocClsList)</span><span class="right pr_10 pt_5">
            <a href="/Column/Lzzc_DocmentIndex?clsCd=@key&prop=R" class="red">更多</a></span></div>
        	<div class="phototop" id="idTransformView">
            <div class="slider" id="idSlider">
            <table width="100%">
              <tbody>
              @foreach (DocumentGridModel documentModel in documentList)
              {
              <tr>
                <td valign="top">
                  <a href="#" target="_blank"><img src="@documentModel.FThumbSrvFileName" height="223" width="298"  alt="" /></a>
                  <span><a href="#" target="_blank">@documentModel.FTitle</a></span>
                  </td></tr>
              }
              <tr>
                <td align="right"></td></tr></tbody></table></div>
            <ul class="num" id="idNum">
            @foreach (DocumentGridModel documentModel in documentList)
            {
              <li>@i </li>
             i++;
            }
              </ul></div>
            <script src="@Url.Content("~/Scripts/lanrentuku.js")" type="text/javascript"></script>
                    </div>
        <div class="gzdt">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800607";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title3"><span class="left pl_10 pt_10"><img src="@Url.Content("~/Content/images_lzzc/gzdt.gif")"  alt="" /></span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key" class="red">更多</a></span></div>
            <div class="news_content3">
            	<ul>
                @foreach (DocumentGridModel documentModel in documentList)
                {
                	<li><span class="right pr_10">@documentModel.FPubDate.ToString("yyyy-MM-dd")</span><a href="#" target="_blank" title="@documentModel.FTitle">@documentModel.FTitle</a></li>
                }
                </ul>
            </div>
        </div>
        <div class="red_div">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800605";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="red_title"><span class="left f16 f-b white pl_10">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key&prop=A" class="white">更多</a></span></div>
            <script type="text/javascript">
                //js无缝滚动代码
                function marquee(i, direction) {
                    var obj = document.getElementById("marquee" + i);
                    var obj1 = document.getElementById("marquee" + i + "_1");
                    var obj2 = document.getElementById("marquee" + i + "_2");
                    if (direction == "up") {
                        if (obj2.offsetTop - obj.scrollTop <= 0) {
                            obj.scrollTop -= (obj1.offsetHeight + 10);
                        } else {
                            var tmp = obj.scrollTop;
                            obj.scrollTop++;
                            if (obj.scrollTop == tmp) {
                                obj.scrollTop = 1;
                            }
                        }
                    } else {
                        if (obj2.offsetWidth - obj.scrollLeft <= 0) {
                            obj.scrollLeft -= obj1.offsetWidth;
                        } else {
                            obj.scrollLeft++;
                        }
                    }
                }

                function marqueeStart(i, direction) {
                    var obj = document.getElementById("marquee" + i);
                    var obj1 = document.getElementById("marquee" + i + "_1");
                    var obj2 = document.getElementById("marquee" + i + "_2");

                    obj2.innerHTML = obj1.innerHTML;
                    var marqueeVar = window.setInterval("marquee(" + i + ", '" + direction + "')", 20);
                    obj.onmouseover = function () {
                        window.clearInterval(marqueeVar);
                    }
                    obj.onmouseout = function () {
                        marqueeVar = window.setInterval("marquee(" + i + ", '" + direction + "')", 20);
                    }
                }
			</script>
            <div id="marquee2" class="marqueetop">
	<div style="height:8000px;">
		<ul id="marquee2_1">
         @foreach (SysPhrase documentModel in sysPhraseList)
         {
			<li><a href="#">
            @documentModel.FPhrase
            </a></li>   
         }    
		</ul>
		<ul id="marquee2_2"></ul>
	</div>
</div><!--marqueeleft end-->
<script type="text/javascript">    marqueeStart(2, "up");</script>
        </div>
        <div class="news">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800602";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title"><span class="left f16 f-b pl_10 red">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key">更多</a></span></div>
            <div class="news_content" style="height:178px;">
            	<ul>
                    @foreach (DocumentGridModel documentModel in documentList)
                    {
                	<li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                    }
                </ul>
            </div>
        </div>
        <div class="news">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800601";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title"><span class="left f16 f-b pl_10 red">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key">更多</a></span></div>
            <div class="news_content" style="height:178px;">
            	<ul>
                	@foreach (DocumentGridModel documentModel in documentList)
                 {
                	<li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                 }
                </ul>
            </div>
        </div>
        
        <div class="red_div">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800608";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="red_title"><span class="left f16 f-b white pl_10">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key" class="white">更多</a></span></div>
            <div class="news_content2" style="height:178px;">
            	<ul>
                	@foreach (DocumentGridModel documentModel in documentList)
                 {
                	<li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                 }
                </ul>
            </div>
        </div>
            @{
                key = "800604";
             }  
        <div class="lzxy">
        	<div class="video">
            	<div class="video_t"><img src="@Url.Content("~/Content/images_lzzc/07.gif")" alt="" /></div>
                <div class="video_c"><img src="@Url.Content("~/Content/images_lzzc/06.png")" alt="" /></div>
                <div class="video_more"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key&indexClsCd=80060401"><img src="@Url.Content("~/Content/images_lzzc/09.jpg")" alt="" /></a></div>
            </div>
            
            <div class="academic">
            @{
                documentList = new List<DocumentGridModel>();
                key = "80060402";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
            	<div class="academic_t"><img src="@Url.Content("~/Content/images_lzzc/08.gif")" alt="" /></div>
                <div class="academic_c" style="height:156px;">
                	<ul>
                    	@foreach (DocumentGridModel documentModel in documentList)
                     {
                	    <li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                     }
                    </ul>
                </div>
                <div class="academic_more"><a href="/Column/Lzzc_DocmentIndex?clsCd=800604&indexClsCd=80060402"><img src="@Url.Content("~/Content/images_lzzc/09.jpg")" alt="" /></a></div>
            </div>
            
        </div>
        
        <div class="news">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800603";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title2"><span class="left f16 f-b pl_10 white">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key">更多</a></span></div>
            <div class="news_content" style="height:114px;">
            	<ul>
                	@foreach (DocumentGridModel documentModel in documentList)
                 {
                	<li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                 }
                </ul>
            </div>
        </div>
        
        <div class="news">
            @{
                documentList = new List<DocumentGridModel>();
                key = "800609";
                if (Model.ContainsKey(key))
                {
                    documentList = Model[key];
                }  
              }
        	<div class="news_title2"><span class="left f16 f-b pl_10 white">@GetShowText(key, subDocClsList)</span><span class="right pr_10"><a href="/Column/Lzzc_DocmentIndex?clsCd=@key">更多</a></span></div>
            <div class="news_content" style="height:114px;">
            	<ul>
                	@foreach (DocumentGridModel documentModel in documentList)
                 {
                	<li><a href="/Column/Lzzf_Detail?docId=@documentModel.FDocId&docClsCd=@documentModel.FDocClsCd">@documentModel.FTitle</a></li>
                 }
                </ul>
            </div>
        </div>
        
        <div class="red_div">
        	<div class="red_title2"><span class="left f16 f-b white pl_10">友情链接</span><span class="right pr_10"><a href="#">更多</a></span></div>
            <div class="link" style="height:110px;">
            	<a href="#"><img src="@Url.Content("~/Content/images_lzzc/link01.jpg")" alt="" /></a>
                <a href="#"><img src="@Url.Content("~/Content/images_lzzc/link02.jpg")" alt="" /></a>
                <a href="#"><img src="@Url.Content("~/Content/images_lzzc/link03.jpg")" alt="" /></a>
                <a href="#"><img src="@Url.Content("~/Content/images_lzzc/link04.jpg")" alt="" /></a>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
        
    </div>
</div>
